<form action="{:sysuri()}" method="post" data-auto="true" class="layui-form layui-card" style="height: 600px;" data-table-id="Table" >
  <div class="layui-card-body padding-left-40">
      <fieldset class="layui-bg-gray">
          <legend><b class="layui-badge think-bg-violet">站点</b></legend>

          <div class="layui-row layui-col-space15">
              <div class="layui-col-xs6">
                  <label class="block relative">
                      <span class="help-label"><b>站点名称</b></span>
                      <input name="site_name"  vali-name="站点名称"  class="layui-input">
                      <span class="help-block">自定义</span>
                  </label>
              </div>
              <div class="layui-col-xs6">
                  <label class="block relative">
                      <span class="help-label"><b>站点地址</b</span>
                        <input name="site_url"  vali-name="站点地址"  class="layui-input">
                      <span class="help-block">举例：https://leaves.red</span>
                  </label>
              </div>
              <div class="layui-col-xs6">
                <label class="block relative">
                    <span class="help-label"><b>接口地址</b></span>
                    <input name="api_url"  required vali-name="接口地址" class="layui-input">
                    <span class="help-block"><a style="color:red">站点地址+/api/pieces-hash,返回405则代表支持辅种</a></span>
                </label>
              </div>
              <div class="layui-col-xs6">
                <label class="block relative">
                    <span class="help-label"><b>passkey秘钥</b></span>
                    <input name="passkey"  class="layui-input">
                    <span class="help-block">只存在本地数据库中</span>
                </label>
              </div>
              <div class="layui-col-xs6">
                <label class="block relative">
                    <span class="help-label"><b>请求间隔</b></span>
                    <input name="request_interval"  required vali-name="请求间隔" class="layui-input" type="number">
                    <span class="help-block">单位：s</span>
                </label>
              </div>
              <div class="layui-col-xs6">
                <label class="block relative">
                    <span class="help-label"><b>下载限速</b></span>
                    <input name="download_limit"  required vali-name="下载限速" class="layui-input">
                    <span class="help-block">单位：M/s,0为不限制</span>
                </label>
              </div>
              <div class="layui-col-xs6">
                <label class="block relative">
                    <span class="help-label"><b>上传限速</b></span>
                    <input name="upload_limit"  required vali-name="上传限速" class="layui-input">
                    <span class="help-block">单位：M/s,0为不限制</span>
                </label>
              </div>
          </div>
      </fieldset>
  </div>

  <div class="hr-line-dashed"></div>
  {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
  <div class="layui-form-item text-center">
      <button class="layui-btn" type='submit'>保存数据</button>
      <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
  </div>
</form>